package com.itheima.reggie.common;

//通过当前运行的线程来传递无法通过方法传递的参数
public class BaseContext {
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();


    public static Long get() {
        return threadLocal.get();
    }


    public static void set(Long id) {
        threadLocal.set(id);
    }
}
